function deconvolve_hadvdid_univ(sub)

%specify model for naming (must change model argument in deconvolve
%funciton
model='BLOCK_81';
test='hadvdid';
smooth='blur6';

if sub<10
    s=['0',num2str(sub)]
else
    s = num2str(sub)
end

cd(['~/../../ncf/cushman/Regan/desert_island/desisl_',s,'/desisl_',s,'.results'])

    

update=['starting deconvolve']
    
    
    unix(sprintf(['3dDeconvolve -input pb05.desisl_',s,'.r01.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r02.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r03.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r04.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r05.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r06.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r07.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r08.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r09.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r10.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r11.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r12.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r13.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r14.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r15.',smooth,'+orig ' ...
        'pb05.desisl_',s,'.r16.',smooth,'+orig ' ...
        '-mask full_mask_fewzeros.desisl_',s,'+orig ' ...
        '-polort 3 ' ... 
        '-num_stimts 8 ' ...
        '-stim_file 1 ''full_motion.1D[0]'' ' ...
        '-stim_label 1 mc_params1 ' ...
        '-stim_base 1 ' ...
        '-stim_file 2 ''full_motion.1D[1]'' ' ...
        '-stim_label 2 mc_params2 ' ...
        '-stim_base 2 ' ...
        '-stim_file 3 ''full_motion.1D[2]'' ' ...
        '-stim_label 3 mc_params3 ' ...
        '-stim_base 3 ' ...
        '-stim_file 4 ''full_motion.1D[3]'' ' ...
        '-stim_label 4 mc_params4 ' ...
        '-stim_base 4 ' ...
        '-stim_file 5 ''full_motion.1D[4]'' ' ...
        '-stim_label 5 mc_params5 ' ...
        '-stim_base 5 ' ...
        '-stim_file 6 ''full_motion.1D[5]'' ' ...
        '-stim_label 6 mc_params6 ' ...
        '-stim_base 6 ' ...
        '-stim_times 7 s',s,'crit_had_times.1D ''BLOCK(8,1)'' ' ...
        '-stim_label 7 had ' ...
        '-stim_times 8 s',s,'crit_did_times.1D ''BLOCK(8,1)'' ' ...
        '-stim_label 8 did ' ...
        '-num_glt 1 ' ...
        '-glt_label 1 hadvdid ' ...
        '-gltsym ''SYM: had -did'' ' ...
        '-full_first -xjpeg ',model,'_',test,'_',smooth,'.glm_matrix.jpg -x1D ',model,'_',test,'_',smooth,'.xmat.1D -fout -tout ' ...
        '-errts ',model,'_',test,'_',smooth,'.errts.desisl_',s,' ' ...
        '-bucket ',model,'_',test,'_',smooth,'.stats.desisl_',s,' ']));
    
update=['deconvolve finished']    
    
end